package com.pig4cloud.pig.order.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.pig4cloud.pig.order.api.dto.TrOrder;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OrderMapper extends BaseMapper<TrOrder> {
	Page<TrOrder> selectOrderPage(Page<TrOrder> page,@Param("order") TrOrder order,@Param("guideId") Long currentGuideId);

	List<TrOrder> selectOrderList(@Param("order") TrOrder order,@Param("guideId")Long currentGuideId);

	TrOrder selectByIdWithTrip(Long orderId);

	int updateStatusById(TrOrder order1);
}
